import getEnumsManager from '@/common/enum';
export const CheckStateEnum = getEnumsManager([
  { value: '0', text: '未校核', name: 'Unchecked' },
  { value: '1', text: '支部已初核', name: 'BranchChecked' },
  { value: '3', text: '总支已初核', name: 'TotalBranchChecked' },
  { value: '4', text: '初核未通过', name: 'InitialNucleusFailed' },
  { value: '5', text: '已复核', name: 'Reviewed' },
  { value: '6', text: '复核未通过', name: 'ReviewFailed' },
  { value: '9', text: '无需校核', name: 'NoNeed' }
]);

export const InfoTypeEnum = getEnumsManager([
  { value: 'Concise', text: '简要个人信息', name: 'Concise' },
  { value: 'Daily', text: '日常全项信息', name: 'Daily' },
  { value: 'Stat', text: '党统全项信息', name: 'Stat' }
]);

export const HistoryTypeEnum = getEnumsManager([
  { value: '01', text: '死亡', name: 'Die' },
  { value: '03', text: '出党', name: 'Leave' },
  { value: '04', text: '停止党籍', name: 'Cease' }
]);

export const UserStateEnum = getEnumsManager([
  { value: '6', name: 'Leave' },
  { value: '8', name: 'Lock' },
  { value: '9', name: 'Del' }
]);

export const RecoveryTypeEnum = getEnumsManager([
  { value: 'RestoreInfo', text: '恢复党籍信息', name: 'Concise' },
  { value: 'flowChart', text: '流程图', name: 'Daily' }
]);

export const BadgeSearchTypeEnum = getEnumsManager([
  { value: '1', text: '本年度', name: 'ThisYear' },
  { value: '0', text: '历年', name: 'PreviousYears' },
  { value: '2', text: '年度', name: 'Year' }
]);

export const UserTypeEnum = getEnumsManager([
  { value: '1', text: '群众', name: 'QZ' },
  { value: '2', text: '申请人', name: 'SQR' },
  { value: '3', text: '积极分子', name: 'JJFZ' },
  { value: '4', text: '发展对象', name: 'FZDX' },
  { value: '5', text: '预备党员', name: 'YBDY' },
  { value: '6', text: '正式党员', name: 'ZSDY' },
  { value: '9', text: '其他', name: 'QT' }
]);

export const IncomingTypeEnum = getEnumsManager([
  { value: '1', text: '新发展' },
  { value: '2', text: '跨省（系统）组织关系转入' },
  { value: '3', text: '恢复党籍' },
  { value: '31', text: '停止党籍恢复' },
  { value: '32', text: '错误开除党籍恢复' },
  { value: '39', text: '其他恢复党籍' },
  { value: '8', text: '首次采集录入' },
  { value: '9', text: '补录' }
]);

export const FlowStateEnum = getEnumsManager([
  { value: '2', text: '办理中', name: 'Processing' },
  { value: '3', text: '已驳回', name: 'Rejected' },
  { value: '4', text: '已办结', name: 'Completed' },
  { value: '8', text: '已作废', name: 'Voided' }
]);